//
//  YAYISchedulingCell.h
//  testForAreacode
//
//  Created by Veer on 16/6/4.
//  Copyright © 2016年 Veer. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YAYISchedulingView.h"

@class YAYISchedulingItemModel;


@protocol YAYISchedulingCellDelegate <NSObject>

@optional
/**
 *  itemView被点击
 */
- (BOOL)schedulingCellItemViewDidCickAtIndex:(NSInteger)index withIndexPath:(NSIndexPath *)indexPath state:(BOOL)isOpen;

@end


@interface YAYISchedulingCell : UITableViewCell

@property (nonatomic, assign) LineType lineType;

@property (nonatomic, assign) id<YAYISchedulingCellDelegate> delegate;
@property (nonatomic, strong) YAYISchedulingItemModel *model;
@property (nonatomic, strong) NSIndexPath *indexPath;

+ (instancetype)cellWith:(UITableView *)tablevie;

@end
